Adherencia HM en el Centro de Simulación

Resumen y gráficos descriptivos

Authors
Affiliation

Mario Camacho

Facultad de Medicina

Fernando Neria

Facultad de Medicina

Published

November 19, 2025

Modified

February 3, 2026

Resumen rápido

skim(data)
Data summary
Name data
Number of rows 1142
Number of columns 6
_______________________
Column type frequency:
factor 6
________________________
Group variables None

Variable type: factor

skim_variable n_missing complete_rate ordered n_unique top_counts
curso 0 1 TRUE 3 5º : 698, 4º : 371, 4º : 73
escenario 0 1 FALSE 3 Box: 572, Con: 325, Pro: 245
situacion 0 1 FALSE 2 Pun: 1130, Ent: 12
indicacion 0 1 FALSE 5 M1: 472, M4: 355, M3: 138, M2: 136
accion 0 1 FALSE 2 No : 885, HM: 257
guantes 0 1 FALSE 2 NO: 1021, SI: 121
cat("Resumen de valores sin informar por variable."); print(colSums(is.na(data)))
Resumen de valores sin informar por variable.
     curso  escenario  situacion indicacion     accion    guantes 
         0          0          0          0          0          0 

Análisis univariado

Variables numéricas

No hay variables numéricas

Variables categóricas

Número de variables categóricas:  6 
( curso, escenario, situacion, indicacion, accion, guantes )

Distribución conjunta de variables

Tabla de distribución por curso

data |>
  tbl_summary(
    by = curso,
    type = list(accion ~ "categorical"),
    statistic = list(all_categorical() ~ "{n} ({p}%)")
  ) |> 
  modify_header(label ~ "Curso:")
Curso: 4º (pre-formación)
N = 3711
4º (post-formación corto plazo)
N = 731
5º (post-formación largo plazo)
N = 6981
escenario


    Box 308 (83%) 0 (0%) 264 (38%)
    Consulta 63 (17%) 73 (100%) 189 (27%)
    Procedimiento invasivo 0 (0%) 0 (0%) 245 (35%)
situacion


    Entrada 12 (3.2%) 0 (0%) 0 (0%)
    Punto de atención 359 (97%) 73 (100%) 698 (100%)
indicacion


    M2 5 (1.3%) 0 (0%) 131 (19%)
    M1 173 (47%) 33 (45%) 266 (38%)
    M5 26 (7.0%) 0 (0%) 15 (2.1%)
    M4 158 (43%) 40 (55%) 157 (22%)
    M3 9 (2.4%) 0 (0%) 129 (18%)
accion


    No HM 333 (90%) 36 (49%) 516 (74%)
    HM 38 (10%) 37 (51%) 182 (26%)
guantes


    NO 350 (94%) 72 (99%) 599 (86%)
    SI 21 (5.7%) 1 (1.4%) 99 (14%)
1 n (%)

Gráficos de distribución conjunta de dos variables

if(length(mosaic_plots) > 0) {
  for(p in mosaic_plots) {
    print(p)
  }
}

Gráficos de la distribución de la tasa de cumplimiento de HM

if(length(mosaic_plots3) > 0) {
  for(p in mosaic_plots3) {
    print(p)
  }
}

# Mostrar heatmaps de proporciones
if(length(double_heatmaps_plots) > 0) {
  for(p in double_heatmaps_plots) {
    print(p)
    }
  wrap_plots(double_heatmaps_plots[1:length(double_heatmaps_plots)], ncol = 1)
}